<#-- alert 提示 -->
<div class="alert modalAlert undisplay">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<span></span>
</div>

<script type="text/javascript">
$.extend({
	modalAlert:function(message, type){
		var alertStyle = "alert-success";
		switch(type){
			case 'error':
				alertStyle = "alert-error";
				break;
			case 'info':
				alertStyle = "alert-info";
				break;
			case 'warning':
				alertStyle = "alert-warning";
				break;
			case 'success':
				alertStyle = "alert-success";
				break;
			default:
				break;
		}
		$(".modalAlert").addClass(alertStyle);
		$(".modalAlert span").text(message);
		$(".modalAlert").show();
	}
});
</script>